package com.atguigu.spzx.cart;

import com.atguigu.spzx.common.annotation.EnableSpzxUserInfoInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableSpzxUserInfoInterceptor
@ComponentScan(basePackages = "com.atguigu.spzx")
//MapperScan必须指定到Mapper接口所在的具体包： 直接将包下的所有接口当做Mapper创建
@EnableFeignClients(basePackages = "com.atguigu.spzx")// 只扫描加了@FeignClient注解的接口
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class CartApplication {

    public static void main(String[] args) {
        SpringApplication.run(CartApplication.class , args);
    }
}
